import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 后端接口地址
    host:'http://www.tpblog.xin:8888',
    terminal:'/pc',
  },
  mutations: {
    isPc(state){
      state.terminal='/pc';
    },
    isMobile(state){
      state.terminal='/mobile';
    }

  },
  actions: {
  },
  modules: {
  }
})
